/*
	生成随机字符串
*/
function getRandomString(len = 16){
	const charStr = 'abacdefghjklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789';
	let	min = 0, max = charStr.length, str = '';
	for(let i = 0, index; i < len; i++){
		let index;
		do {
			index = Math.floor(Math.random() * max + min);
		} while (index >= max - 10 && i === 0);
		str += charStr[index];
	}
	return str;
}

export {
	getRandomString
}
